package dominio;

import java.util.ArrayList;

/**
 * Created by Rafael Simon Garcia on 11/14/13.
 */
public class SwitchFirstWithLastOperator{

    public static void Operate(ArrayList<? super GraphElement> nodes){
        int length = nodes.size();
        GraphElement first = (GraphElement)nodes.remove(0);
        nodes.add(0, (GraphElement)nodes.remove(length - 1));
        nodes.add(first);
    }
}
